.resource-tree {
    position: relative;
    padding-top: 47px;
    width: 300px;
    height: 100%;
    box-shadow: 0 0 6px rgba(0, 21, 41, .25);
    background-color: white;
    .resource-tree-tabs-nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 47px;
        border-bottom: 1px solid #e5e5e5;
        text-align: center;
        li {
            display: inline-block;
            margin-top: 13px;
            padding: 0 15px;
            height: 26px;
            border-radius: 13px;
            line-height: 26px;
            cursor: pointer;
            &.tabs-nav-active {
                color: white;
                background-color: #1890ff;
            }
        }
    }

    .resource-tree-container {
        overflow: hidden;
        width: 100%;
        height: 100%;
        .resource-tree-tabs-content,
        .resource-tree-tabs-tabpane {
            width: 100%;
            height: 100%;
        }

        .resource-tree-tabs-content {
            display: flex;
            flex-direction: row;
            transition: margin-left .3s cubic-bezier(.645,.045,.355,1);
            .resource-tree-tabs-tabpane {
                flex: 0 0 100%;
                transition: opacity .45s;
                opacity: 0;
                &.tabs-tabpane-active {
                    opacity: 1;
                }
            }
        } 
    }

    .collapse-button {
        position: absolute;
        top: 27px;
        left: -20px;
        z-index: 1;
        width: 40px;
        height: 40px;
        border-width: 0;
        border-radius: 100%;
        color: white;
        background-color: #1890ff;
        box-shadow: 1px 1px 6px rgba(0, 0, 0, .2);
        outline: none;
        cursor: pointer;
        &:hover {
            background-color: #43a4fe;
        }
    }

    .resource-push-message-mask {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 0;
        background-color: rgba(255, 255, 255, .5);
    }

    .resource-push-message {
        position: absolute;
        bottom: -60px;
        left: 15px;
        right: 15px;
        padding: 15px;
        height: 54px;
        border-radius: 5px;
        font-size: 14px;
        text-align: center;
        line-height: 24px;
        background-color: rgba(0, 0, 0, .1);
        transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        i, span {
            vertical-align: middle;
        }
        i {
            margin-right: 10px;
            font-size: 20px;
        }
        &.pushing {
            i {
                color: #1890ff;
            }
        }
        &.pushed {
            i {
                color: green;
            }
        }
        &.push-error {
            i {
                color: red;
            }
        }
        &.has-message {
            bottom: 15px;
        }
    }
}

.own-resource {
    position: relative;
    padding-bottom: 52px;
    .treeview-content {
        width: 100%;
        height: 100%;
    }
    .bottom-button-container {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px;
        height: 52px;
        border-top: 1px solid #e5e5e5;
        text-align: center;
        background-color: white;
    }
}


.treeview-node {
    display: flex;
    flex-direction: row;
    height: 28px;
    padding: 2px 0;
    border-radius: 4px;
    .tree-switcher {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        margin: 0px;
        border-width: 0px;
        border-style: initial;
        border-color: initial;
        border-image: initial;
        outline: 0px;
        &.cursor-pointer {
            cursor: pointer;
        }
        .anticon {
            font-size: 12px;
            font-weight: 700;
            transition: transform 0.3s;
            &.tree-switcher_close {
                transform: scale(0.583333) rotate(0deg);
            }
            &.tree-switcher_open {
                transform: rotate(-270deg) scale(0.59);
            }
        }
    }
    .tree-checkbox {
        flex: 0 0 22px;
        width: 22px;
        padding: 0 4px 0 2px;
        font-size: 14px;
    }
    .tree-node-content-wrapper {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        flex: auto;
        width: auto;
        height: 24px;
        line-height: 24px;
        padding: 0px 5px;
        color: rgba(0, 0, 0, 0.65);
    }
    .tree-node-added {
        flex: 0 0 30px;
        width: 30px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        color: #1890ff;
    }
    .tree-node-add-button {
        flex: 0 0 30px;
        width: 30px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        color: #727272;
        cursor: pointer;
    }
    .tree-node-menu {
        position: relative;
        flex: 0 0 30px;
        width: 30px;
        height: 24px;
        border-left: 1px solid #e5e5e5;
        .dropdown-link {
            display: block;
            width: 30px;
            height: 24px;
            line-height: 24px;
            text-align: center;
            color: #727272;
            transform: rotate(90deg);
            cursor: pointer;
        }
    }
    &:hover {
        background-color: #ecf6fd;
    }
}